package com.celesea.workflow.collaboration.v1.controller.request;

import com.celesea.framework.vo.DictionaryVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author JackYuan
 * @create 2017-11-18 15:45
 */

@ApiModel(value = "新增工作协作单")
public class PostRequest {

    @NotNull
    @ApiModelProperty(value = "协作部门", required = true)
    private DictionaryVo collaborationDept;

    @NotNull
    @Length(min = 1, max = 20)
    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @NotNull
    @Length(min = 1, max = 200)
    @ApiModelProperty(value = "任务内容")
    private String taskContent;

    @ApiModelProperty(value = "指定协作人")
    private List<DictionaryVo> users;


    public DictionaryVo getCollaborationDept() {
        return collaborationDept;
    }

    public void setCollaborationDept(DictionaryVo collaborationDept) {
        this.collaborationDept = collaborationDept;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent;
    }

    public List<DictionaryVo> getUsers() {
        return users;
    }

    public void setUsers(List<DictionaryVo> users) {
        this.users = users;
    }
}
